package me.softwareengineer.guice.rendering.domain;

import me.softwareengineer.guice.rendering.listener.Listener;
import me.softwareengineer.guice.rendering.listener.OnSpaceEvent;

/**
 * Represents Space in the DOM.
 *  
 * <pre>
 * This class is thread-safe and can be cached/re-used and used concurrently.
 * </pre>
 * 
 * @author yadtahir
 * @version 1.0
 */
//This class is final since we want to make it immutable as much as possible
public class SpaceElement extends Element {

	/**
	 * Creates a space element
	 */
	public SpaceElement() {

	}

	@Override
	public void render(Listener listener) {
		OnSpaceEvent event = new OnSpaceEvent();
		listener.onEvent(event);
	}

}
